import { get, post } from '@/utils/request'
const host = `http://localhost:9090`

// 上传切片文件
export const uploadChunkVideoApi = async (formData: FormData) => {
  return post<{ path: string }>(`${host}/api/uploadChunkVideo`, formData)
}

// 通知合并切片文件
export const mergeChunkVideoApi = async (hash: string, ext: string) => {
  return post<{ path: string; url: string }>(`${host}/api/mergeChunkVideo`, {
    hash,
    ext
  })
}
